	export default class Product {
		
		constructor(id, name, price, imageUrl, stock) {
			this.id = id;
			this.name = name;
			this.price = price;
			this.imageUrl = imageUrl;
			this.stock = stock;
		}
		
		static parseFromJsonString(jsonString) {
			let jsonObject = JSON.parse(jsonString);
			return new Product(
				jsonObject.id,
				jsonObject.name,
				jsonObject.price,
				jsonObject.imageUrl,
				jsonObject.stock
			);
		}

	}